<?php
$CI =& get_instance();
$sBasePath = public_base_url().'js/fckeditor/' ;
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="form-table">
  <tr>
    <th width="120" nowrap="nowrap" class="label" >Template Name</th>
    <td>
    	<input type="text" name="item_name" class="input-text" value="<?=$ed['name']?>">
    </td>
  </tr>
  <tr>
    <th width="120" nowrap="nowrap" class="label">News group</th>
    <td>
    	<?php $t1 = unserialize($ed['t1']);?>
		<select name="t1_group" class="input-text">
			<option value="">Please select</option>
			<?php foreach($newsgroups as $item):?>
			<option value="<?=$item['id']?>" <?=$t1['group']==$item['id'] ? "selected='true'" : ""?>><?=$item['name']?></option>
			<?php endforeach;?>
		</select>
    </td>
  </tr>
  <tr>
  	 <th nowrap="nowrap" class="label">Number news list</th>
  	 <td >
  	 	<input type="text" name="t1_number" class="input-text" value="<?=@$t1['number']?>">
    </td>
  </tr>
  <tr>
  	 <th nowrap="nowrap" class="label">Number other news list</th>
  	 <td >
  	 	<input type="text" name="t1_other_number" class="input-text" value="<?=@$t1['other_number']?>">
    </td>
  </tr>
  <tr>
    <td >&nbsp;</td>
    <td >
      <input type="hidden" name="id" value="<?=$ed['id']?>" />
      <input type="hidden" name="item_temp" value="<?=$template_type?>" />
      <input type="hidden" name="item_main" value="<?=$nav['id']?>" />
      <input name="Submit" type="submit" class="ins" value="Save" />
    </td>
  </tr>
</table>
